﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Users.aspx.cs" Inherits="Admin.Admin.Users" Title="Untitled Page" %>

<%@ Register assembly="msgBox" namespace="BunnyBear" tagprefix="cc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <script type="text/javascript">

function confirmAction() {
    if(confirm('Bạn có chắc chắn muốn xóa???')) {
        return true;
    }
    else {
      
        return false;
    }
}

</script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
           <asp:Panel ID="PanelDasboard" runat="server"  Visible="true">
            <div class="dashboard">
                <h2 class="ico_mug">
                    Danh sách thành viên</h2>
                <div>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="UserName"
                        DataSourceID="ObjectDataSource1" Width="100%" 
                        onselectedindexchanged="GridView1_SelectedIndexChanged" AllowPaging="True" 
                        ForeColor="#333333" GridLines="None" onrowdeleted="GridView1_RowDeleted">
                        <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:CommandField ButtonType="Image" SelectImageUrl="~/Admin/img/edit.png" 
                                ShowSelectButton="True" >
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="70px" />
                            </asp:CommandField>
                            <asp:BoundField DataField="UserName" HeaderText="Tài khoản" ReadOnly="True" 
                                SortExpression="UserName" >
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="90px" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RoleID" HeaderText="Mã quyền" SortExpression="RoleID" >
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle Width="125px" HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FullName" HeaderText="Họ Tên" 
                                SortExpression="FullName" >
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="150px" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="NickYahoo" HeaderText="NickYahoo" 
                                SortExpression="NickYahoo" >
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="100px" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="NickSkyper" HeaderText="NickSkyper" 
                                SortExpression="NickSkyper">
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TelePhone" HeaderText="Số nhà" 
                                SortExpression="TelePhone" Visible="False" >
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MobilePhone" HeaderText="Di động" 
                                SortExpression="MobilePhone" Visible="False">
                                <HeaderStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Address" HeaderText="Địa chỉ" 
                                SortExpression="Address">
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="150px" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="City" HeaderText="Thành phố" SortExpression="City" 
                                Visible="False">
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UrlWebsite" HeaderText="Website" 
                                SortExpression="UrlWebsite" Visible="False">
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RegisterDate" HeaderText="Ngày đăng ký" 
                                SortExpression="RegisterDate" Visible="False">
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="IsActive" HeaderText="Kích hoạt" 
                                SortExpression="IsActive" Visible="False" />
                        </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllUserBOList"
                        TypeName="HousingInfo.Library.UserBOList"></asp:ObjectDataSource>
                    <asp:Label ID="messagedelete" runat="server" Font-Bold="True" Font-Size="Small" 
                        ForeColor="Red"></asp:Label>
                    <br />
                </div>
            </div>
       </asp:Panel>
    <asp:Panel ID="PanelActions" runat="server"  Visible="false">
    <div class="dashboard">
        <h2 class="ico_mug">
            <asp:Label ID="lbHeaderActions" runat="server" Text="Thành viên"></asp:Label>
        </h2>
       
       
        <div>
            <table style="width: 100%">
                <tr>
                    <td style="width: 132px">
                        &nbsp;</td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:Label ID="message" runat="server" Font-Bold="True" Font-Size="Small" 
                            ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label1" runat="server" Text="Tên tài khoản :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtusername" runat="server" ReadOnly="True" Width="172px" 
                            MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtusername" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtusername" ErrorMessage="Độ dài tối thiểu &gt; 3 và tối đa là 50" 
                            ValidationExpression="^([\S\s]{3,50})$"></asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator12" 
                            runat="server" ControlToValidate="txtusername" 
                            ErrorMessage="&quot;Ký tự đặc biệt&quot;" ValidationExpression="[a-z A-Z 0-9]*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label11" runat="server" Text="Mật khẩu :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtpassword" runat="server" MaxLength="64" 
                            Width="172px"></asp:TextBox>
                        <cc2:PasswordStrength ID="txtpassword_PasswordStrength" runat="server" 
                            PreferredPasswordLength="6" PrefixText="Độ mạnh: " 
                            TargetControlID="txtpassword" 
                            TextStrengthDescriptions="Không tốt; Yếu; Trung bình; Mạnh; Tuyệt vời">
                        </cc2:PasswordStrength>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="txtpassword" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                            ControlToValidate="txtpassword" 
                            ErrorMessage="Độ dài tối thiểu &gt; 2 và tối đa là 64" 
                            ValidationExpression="^([\S\s]{3,64})$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        Mã quyền :<br />
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        &nbsp;
                        <asp:DropDownList ID="listRoles" runat="server" Height="20px" Width="114px" 
                            DataTextField="Value" DataValueField="Key">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                            SelectMethod="GetEnumerator" TypeName="HousingInfo.Library.RoleInfo">
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label2" runat="server" Text="Họ và Tên :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtfullname" runat="server" Width="172px" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtfullname" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="txtfullname" ErrorMessage="Độ dài tối thiểu &gt; 2 và tối đa là 50" 
                            ValidationExpression="^([\S\s]{3,50})$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="lblbirth" runat="server" Text="Ngày sinh :"></asp:Label>
                    </td>                    
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtbirth" runat="server" Width="172px" MaxLength="50"></asp:TextBox>
                        <cc2:CalendarExtender ID="txtbirth_CalendarExtender" runat="server" 
                            Enabled="True" TargetControlID="txtbirth" TodaysDateFormat="dd,mm,yyyy">
                        </cc2:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="lblemail" runat="server" Text="Email :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtemail" runat="server" Width="172px" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="?" ControlToValidate="txtemail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server"
                            ErrorMessage="Nhập email không đúng" ControlToValidate="txtemail" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label3" runat="server" Text="Nick Yahoo :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtnickyahoo" runat="server" Width="172px" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="txtnickyahoo" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                            ControlToValidate="txtnickyahoo" ErrorMessage="Độ dài từ 3-50 ký tự" 
                            ValidationExpression="^([\S\s]{3,50})$" Display="Dynamic"></asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator14" 
                            runat="server" ErrorMessage="Nick Yahoo không hợp lệ" ValidationExpression="\w+([_.]\w+)*" ControlToValidate="txtnickyahoo"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                 <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Lblskyper" runat="server" Text="Nick Skyper :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtnickskyer" runat="server" Width="172px" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtnickskyer" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                            ControlToValidate="txtnickskyer" ErrorMessage="Độ dài từ 3-50 ký tự" 
                            ValidationExpression="^([\S\s]{3,50})$" Display="Dynamic"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator15" 
                            runat="server" ErrorMessage="Nick Skyper không hợp lệ" ValidationExpression="\w+([_.]\w+)*" ControlToValidate="txtnickskyer"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label4" runat="server" Text="Số cố định :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txttelephone" runat="server" Width="172px" MaxLength="15"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="txttelephone" ErrorMessage="Định dạng không đúng" 
                            ValidationExpression="^[\d]+\.?[\d]+$"></asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator11" 
                            runat="server" ControlToValidate="txttelephone" Display="Dynamic" 
                            ErrorMessage="Nhập tối thiểu 8 và tối đa là 15" 
                            ValidationExpression="^([\S\s]{8,15})$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label5" runat="server" Text="Di động :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtmobiphone" runat="server" Width="172px" MaxLength="15"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="txtmobiphone" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                            ControlToValidate="txtmobiphone" ErrorMessage="Định dạng không đúng" 
                            ValidationExpression="^[\d]+\.?[\d]+$"></asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator10" 
                            runat="server" ControlToValidate="txtmobiphone" Display="Dynamic" 
                            ErrorMessage="Nhập tối thiểu 8 và tối đa là 15" 
                            ValidationExpression="^([\S\s]{8,15})$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label6" runat="server" Text="Địa chỉ :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtaddress" runat="server" Width="172px" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="txtaddress" ErrorMessage="?"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                            ControlToValidate="txtaddress" ErrorMessage="Độ dài tối thiểu &gt; 2 và tối đa là 100" 
                            ValidationExpression="^([\S\s]{3,100})$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label7" runat="server" Text="Tỉnh / Thành phố :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        &nbsp;
                    <asp:DropDownList ID="cbbProvincy" runat="server" Width="150px" DataTextField="Value" DataValueField="Key">
                                        <asp:ListItem Value="Hà Nội 1">Hà Nội 1</asp:ListItem>
                                        <asp:ListItem Value="Hà Nội 2">Hà Nội 2</asp:ListItem>
                                        <asp:ListItem Value="TP HCM">TP HCM</asp:ListItem>
                                        <asp:ListItem Value="An Giang">An Giang</asp:ListItem>
                                        <asp:ListItem Value="Bắc Cạn">Bắc Cạn</asp:ListItem>
                                        <asp:ListItem Value="Bắc Giang">Bắc Giang</asp:ListItem>
                                        <asp:ListItem Value="Bạc Liêu">Bạc Liêu</asp:ListItem>
                                        <asp:ListItem Value="Bắc Ninh">Bắc Ninh</asp:ListItem>
                                        <asp:ListItem Value="Bến Tre">Bến Tre</asp:ListItem>
                                        <asp:ListItem Value="Bình Định">Bình Định</asp:ListItem>
                                        <asp:ListItem Value="Bình Dương">Bình Dương</asp:ListItem>
                                        <asp:ListItem Value="Bình Phước">Bình Phước</asp:ListItem>
                                        <asp:ListItem Value="Bình Thuận">Bình Thuận</asp:ListItem>
                                        <asp:ListItem Value="BR. Vũng Tàu">BR. Vũng Tàu</asp:ListItem>
                                        <asp:ListItem Value="Cà Mau">Cà Mau</asp:ListItem>
                                        <asp:ListItem>Cần Thơ</asp:ListItem>
                                        <asp:ListItem>Cao Bằng</asp:ListItem>
                                        <asp:ListItem>Đà Nẵng</asp:ListItem>
                                        <asp:ListItem>Đắc Lắc</asp:ListItem>
                                        <asp:ListItem>Đồng Nai</asp:ListItem>
                                        <asp:ListItem>Đồng Tháp</asp:ListItem>
                                        <asp:ListItem>Gia Lai</asp:ListItem>
                                        <asp:ListItem>Hà Giang</asp:ListItem>
                                        <asp:ListItem>Hà Nam</asp:ListItem>
                                        <asp:ListItem>Hà Tỉnh</asp:ListItem>
                                        <asp:ListItem>Hải Dương</asp:ListItem>
                                        <asp:ListItem>Hải Phòng</asp:ListItem>
                                        <asp:ListItem>Hòa Bình</asp:ListItem>
                                        <asp:ListItem>Huế</asp:ListItem>
                                        <asp:ListItem>Hưng Yên</asp:ListItem>
                                        <asp:ListItem>Khánh Hòa</asp:ListItem>
                                        <asp:ListItem>Kiên Giang</asp:ListItem>
                                        <asp:ListItem>Kon Tum</asp:ListItem>
                                        <asp:ListItem>Lai Châu</asp:ListItem>
                                        <asp:ListItem>Lâm Đồng</asp:ListItem>
                                        <asp:ListItem>Lạng Sơn</asp:ListItem>
                                        <asp:ListItem>Lào Cai</asp:ListItem>
                                        <asp:ListItem>Long An</asp:ListItem>
                                        <asp:ListItem>Nam Định</asp:ListItem>
                                        <asp:ListItem>Nghệ An</asp:ListItem>
                                        <asp:ListItem>Ninh Bình</asp:ListItem>
                                        <asp:ListItem>Ninh Thuận</asp:ListItem>
                                        <asp:ListItem>Phú Thọ</asp:ListItem>
                                        <asp:ListItem>Phú Yên</asp:ListItem>
                                        <asp:ListItem>Quảng Bình</asp:ListItem>
                                        <asp:ListItem>Quảng Nam</asp:ListItem>
                                        <asp:ListItem>Quảng Ngãi</asp:ListItem>
                                        <asp:ListItem>Quảng Ninh</asp:ListItem>
                                        <asp:ListItem>Quảng Trị</asp:ListItem>
                                        <asp:ListItem>Sóc Trăng</asp:ListItem>
                                        <asp:ListItem>Sơn La</asp:ListItem>
                                        <asp:ListItem>Tây Ninh</asp:ListItem>
                                        <asp:ListItem>Thái Bình</asp:ListItem>
                                        <asp:ListItem>Thái Nguyên</asp:ListItem>
                                        <asp:ListItem>Thanh Hóa</asp:ListItem>
                                        <asp:ListItem>Tiền Giang</asp:ListItem>
                                        <asp:ListItem>Trà Vinh</asp:ListItem>
                                        <asp:ListItem>Tuyên Quang</asp:ListItem>
                                        <asp:ListItem>Vỉnh Long</asp:ListItem>
                                        <asp:ListItem>Vỉnh Phúc</asp:ListItem>
                                        <asp:ListItem>Yên Bái</asp:ListItem>
                                    </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label8" runat="server" Text="Website :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txturlwebsite" runat="server" Width="172px" MaxLength="100">http://</asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                            ControlToValidate="txturlwebsite" 
                            ErrorMessage="Bạn nhập không đúng định dạng!" 
                            ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?">
                        </asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="LabelRegisterDate" runat="server" Text="Ngày đăng ký :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtregisterdate" runat="server" Enabled="False" 
                            ReadOnly="True" Width="172px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px ; text-align: right;">
                        Câu hỏi quên mật khẩu&nbsp; </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        &nbsp;
                        <asp:DropDownList ID="dropdownlistQuestion" runat="server" Width="295px" 
                            DataTextField="Value" DataValueField="Key">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                            SelectMethod="GetEnumerator" TypeName="HousingInfo.Library.QuestionInfo">
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px ; text-align: right;">
                        Trả lời :</td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtAnswerQuestion" runat="server" Width="173px" 
                            MaxLength="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="txtAnswerQuestion" ErrorMessage="?"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="lbllock" runat="server" Text="Khóa tài khoản :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:CheckBox ID="isLock" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Lbllockdate" runat="server" Text="Ngày khóa tài khoản:"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtlockdate" runat="server" Enabled="False" 
                            ReadOnly="True" Width="172px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="lblunlockdate" runat="server" Text="Ngày mở khóa tài khoản :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtunlockdate" runat="server" Enabled="False" 
                            ReadOnly="True" Width="172px"></asp:TextBox>          
                    </td>
                </tr>
                <tr>
                    <td style="width: 132px; text-align: right;">
                        <asp:Label ID="Label10" runat="server" Text="Kích hoạt :"></asp:Label>
                    </td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:CheckBox ID="isActive" runat="server" />
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 132px">
                        &nbsp;</td>
                    <td style="width: 19px">
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnUpdate" runat="server" onclick="btnUpdate_Click" 
                            Text="Cập nhật" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnDelete" runat="server" CausesValidation="False" 
                            onclick="btnDelete_Click" OnClientClick="javascript:return confirmAction();" 
                            Text="Xóa" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Thêm" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
     </asp:Panel>
     </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
